/******************************************************************************
 * @File name   :      IResetPasswordDao.java
 *
 * @Author      :      chen shixiang
 *
 * @Date        :      2011-6-22
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2011-6-22 上午09:46:53        chen shixiang     1.0            Initial Version
 * 2011-9-16 下午5:13:35        He Hao     1.2            Change Method getUserMobilePhone Hql
 *****************************************************************************/
package com.cap.bts.framework.ge.resetpassword.dao;

import com.cap.bts.framework.ge.resetpassword.dto.CertificateDto;
import com.cap.bts.framework.ge.resetpassword.dto.ResetPasswordDto;

import com.cap.bts.framework.common.dao.IBaseDao;
import com.cap.bts.framework.usermgnt.domain.User;

/**
 *
 */
public interface IResetPasswordDao extends IBaseDao<User, Long> {

    /**
     * get user certificate
     * @Date        :      2011-6-22
     * @param userCode user code
     * @return CertificateDto
     */
    public CertificateDto getUserCertificateType(String userCode);
    /**
     * validation user
     * @Date        :      2011-6-22
     * @param resetPasswordDto resetPasswordDto
     * @return boolean
     */
    public boolean verifyResetPasswordRequest(ResetPasswordDto resetPasswordDto);
    /**
     * get user phone
     * @Date        :      2011-6-22
     * @param userCode user code
     * @return mobilephone
     */
    public Long getUserMobilePhone(String userCode);
    
    
    public String getUserMobilePhoneFromDealer(String userCode);
    
}
